#ifndef NEWSVIEWER_HPP
#define NEWSVIEWER_HPP

#include <string>
#include <QDialog>
#include "newssetting.hpp"

#include "ui_newsviewer.h"

using namespace std;

class NewsViewer : public QDialog,public Ui::NewsViewer
{
    Q_OBJECT

public:
    NewsViewer(NewsSetting * newssetting,QWidget *parent=0);
private:
    int newsnum,currentnewsnum;
    QString newscontent[100],newslink[100];
    NewsSetting *newssetting;
public slots:
    void readFile();
private slots:
    void nextNews();
    void previousNews();
    void openBrowser();
    void settingDialogShow();
};

#endif // NEWSVIEWER_HPP
